NcApi
Initialisation and Application provided functions

Initialisation

The application must call NcApiInit() once for initialisation.

msc_inline_mscgraph_1

UART service functions

The Application must provide the following actions to UART service requests, cf. the "Introduction and overview" chapter:

The application must provied means of servicing UART CTS signal changes. When the CTS edges low, NcApiCtsActive() must be called. If there is a pending enqueued message the API will call NcApiSupportTxData(), and when the entire message has been delivered to the UART, NcApiSupportMessageWritten() is called.

The application must provied means of servicing UART Rx data. When a byte is received NcApiRxData() must be called. When a complete message has been received, the application will be notified via NcApiSupportMessageReceived().

Basic Rx/Tx functions

The Application must provide the following basic functions for receiving and transmitting messages, cf. the "Introduction and overview" chapter:

Received message callback functions

The applicaton can chose to be notified for certain received message types through the instance of NcApiRxHandlers, which is aet of application callback function pointers.
Cf. the "Introduction and overview" chapter.